package com.sws.staff.domain;

import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sws.common.annotation.Excel;
import com.sws.common.core.domain.BaseEntity;

/**
 * 工作人员信息对象 ry_staff
 * 
 * @author cx
 * @date 2025-06-30
 */
public class RyStaff extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 设备端人员PID */
    private String pid;

    /** 设备SN */
    private String deviceSn;
    
    /** 设备序列号列表（多设备支持） */
    private List<String> deviceIds;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 人员类别 */
    @Excel(name = "人员类别")
    private Integer category;

    /** 性别 */
    @Excel(name = "性别")
    private Integer gender;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCardNo;

    /** 身份标识 */
    @Excel(name = "身份标识")
    private Integer identity;

    /** 人脸照片路径 */
    @Excel(name = "人脸照片路径")
    private String facePhoto;

    /** 微信用户唯一标识 */
    @Excel(name = "微信用户唯一标识")
    private String openid;

    /** 最后出现时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后出现时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastAppearTime;

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }
    
    public List<String> getDeviceIds() {
        return deviceIds;
    }

    public void setDeviceIds(List<String> deviceIds) {
        this.deviceIds = deviceIds;
    }

    /** 删除标志(0存在,1删除) */
    private Long delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCategory(Integer category) 
    {
        this.category = category;
    }

    public Integer getCategory() 
    {
        return category;
    }

    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }

    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setIdCardNo(String idCardNo) 
    {
        this.idCardNo = idCardNo;
    }

    public String getIdCardNo() 
    {
        return idCardNo;
    }

    public void setIdentity(Integer identity) 
    {
        this.identity = identity;
    }

    public Integer getIdentity() 
    {
        return identity;
    }

    public void setFacePhoto(String facePhoto) 
    {
        this.facePhoto = facePhoto;
    }

    public String getFacePhoto() 
    {
        return facePhoto;
    }

    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }

    public void setLastAppearTime(Date lastAppearTime) 
    {
        this.lastAppearTime = lastAppearTime;
    }

    public Date getLastAppearTime() 
    {
        return lastAppearTime;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("name", getName())
            .append("category", getCategory())
            .append("gender", getGender())
            .append("age", getAge())
            .append("phone", getPhone())
            .append("idCardNo", getIdCardNo())
            .append("identity", getIdentity())
            .append("facePhoto", getFacePhoto())
            .append("openid", getOpenid())
            .append("remark", getRemark())
            .append("lastAppearTime", getLastAppearTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
